
import request from '@/utils/request'
export function addCardAPI(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}
export function getCardDetailAPI(id) {
  return request({
    url: '/parking/card/detail/' + id
  })
}
export function updateCardAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'put',
    data
  })
}

export function getViewCardAPI(id) {
  return request({
    url: '/parking/card/' + id
  })
}
export function getProportionAPI() {
  return request({
    url: '/parking/card/proportion'
  })
}
export function rechargeCardAPI(data) {
  return request({
    url: '/parking/card/recharge',
    method: 'post',
    data
  })
}

